package dict

import "gitee.com/igolang/imoney/internal/models/model"

func Get(t string) ([]*model.SysDictDatum, error) {
	return DictData.Get(t)
}

func Value(t, label string) string {
	return DictData.Value(t, label)
}

func Label(t, value string) string {
	return DictData.Label(t, value)
}

func ValueOptions(rows []*model.SysDictDatum, label string) string {
	return DictData.ValueOptions(rows, label)
}

func LabelOptions(rows []*model.SysDictDatum, value string) string {
	return DictData.LabelOptions(rows, value)
}
